/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.    
 */
package dk.redillusions.jdbc.proxy;

import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Date;
import java.sql.NClob;
import java.sql.ParameterMetaData;
import java.sql.PreparedStatement;
import java.sql.Ref;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLXML;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Calendar;

import edu.umd.cs.findbugs.annotations.SuppressWarnings;

/**
 * Empty implementation of a {@link IPreparedStatementDelegate}.
 * 
 * @author Sune Wettersteen
 * 
 */
@SuppressWarnings(value = { "NP_NONNULL_RETURN_VIOLATION" })
public class PreparedStatementAdapterDelegate extends StatementAdapterDelegate implements PreparedStatement {

    /** {@inheritDoc} */
    @Override
    public void addBatch() throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void clearParameters() throws SQLException {
        // Do nothing

    }

    // CHECKSTYLE:OFF
    /*
     * Justification: This class will explode with "design for extension"
     * warnings. The class has the behaviour which is intended for it, and we
     * don't want those warnings.
     */

    /** {@inheritDoc} */
    @Override
    public boolean execute() throws SQLException {
        // Do nothing
        return false;
    }

    /** {@inheritDoc} */
    @Override
    public ResultSet executeQuery() throws SQLException {
        // Do nothing
        return null;
    }

    /** {@inheritDoc} */
    @Override
    public int executeUpdate() throws SQLException {
        // Do nothing
        return 0;
    }

    /** {@inheritDoc} */
    @Override
    public ResultSetMetaData getMetaData() throws SQLException {
        // Do nothing
        return null;
    }

    /** {@inheritDoc} */
    @Override
    public ParameterMetaData getParameterMetaData() throws SQLException {
        // Do nothing
        return null;
    }

    // CHECKSTYLE:ON

    /** {@inheritDoc} */
    @Override
    public void setArray(final int parameterIndex, final Array x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setAsciiStream(final int parameterIndex, final InputStream x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setAsciiStream(final int parameterIndex, final InputStream x, final int length) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setAsciiStream(final int parameterIndex, final InputStream x, final long length) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setBigDecimal(final int parameterIndex, final BigDecimal x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setBinaryStream(final int parameterIndex, final InputStream x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setBinaryStream(final int parameterIndex, final InputStream x, final int length) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setBinaryStream(final int parameterIndex, final InputStream x, final long length) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setBlob(final int parameterIndex, final Blob x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setBlob(final int parameterIndex, final InputStream inputStream) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setBlob(final int parameterIndex, final InputStream inputStream, final long length) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setBoolean(final int parameterIndex, final boolean x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setByte(final int parameterIndex, final byte x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setBytes(final int parameterIndex, final byte[] x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setCharacterStream(final int parameterIndex, final Reader reader) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setCharacterStream(final int parameterIndex, final Reader reader, final int length) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setCharacterStream(final int parameterIndex, final Reader reader, final long length) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setClob(final int parameterIndex, final Clob x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setClob(final int parameterIndex, final Reader reader) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setClob(final int parameterIndex, final Reader reader, final long length) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setDate(final int parameterIndex, final Date x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setDate(final int parameterIndex, final Date x, final Calendar cal) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setDouble(final int parameterIndex, final double x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setFloat(final int parameterIndex, final float x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setInt(final int parameterIndex, final int x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setLong(final int parameterIndex, final long x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setNCharacterStream(final int parameterIndex, final Reader value) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setNCharacterStream(final int parameterIndex, final Reader value, final long length) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setNClob(final int parameterIndex, final NClob value) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setNClob(final int parameterIndex, final Reader reader) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setNClob(final int parameterIndex, final Reader reader, final long length) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setNString(final int parameterIndex, final String value) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setNull(final int parameterIndex, final int sqlType) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setNull(final int parameterIndex, final int sqlType, final String typeName) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setObject(final int parameterIndex, final Object x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setObject(final int parameterIndex, final Object x, final int targetSqlType) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setObject(final int parameterIndex, final Object x, final int targetSqlType, final int scaleOrLength) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setRef(final int parameterIndex, final Ref x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setRowId(final int parameterIndex, final RowId x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setSQLXML(final int parameterIndex, final SQLXML xmlObject) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setShort(final int parameterIndex, final short x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setString(final int parameterIndex, final String x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setTime(final int parameterIndex, final Time x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setTime(final int parameterIndex, final Time x, final Calendar cal) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setTimestamp(final int parameterIndex, final Timestamp x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setTimestamp(final int parameterIndex, final Timestamp x, final Calendar cal) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    public void setURL(final int parameterIndex, final URL x) throws SQLException {
        // Do nothing

    }

    /** {@inheritDoc} */
    @Override
    @Deprecated
    public void setUnicodeStream(final int parameterIndex, final InputStream x, final int length) throws SQLException {
        // Do nothing

    }

}
